package com.yungu.swift.order.utils;


import java.util.Map;


/**
 * Created by cuixiuyin on 2018/4/24.
 */
public class PayVerifySignUtils {

    public static boolean validateSignTenPay(Map<String, String> map, String key, String sign) {
        return sign.equals(PaySignBuilder.wxSignMD5(map, key));
    }

    public static boolean validateSignAliPay(Map<String, String> map, String key, String sign) {
        String url = PayUrlBuilder.buildUrl(map, false, false, true);
        return RSASignature.doCheck(url, sign, key);
    }

}
